import request from '@/utils/request'

// 查询客户端订单列表
export function listClientOrder(query) {
  return request({
    url: '/business/clientOrder/list',
    method: 'get',
    params: query
  })
}

// 查询客户端订单详细
export function getClientOrder(id) {
  return request({
    url: '/business/clientOrder/' + id,
    method: 'get'
  })
}

// 新增客户端订单
export function addClientOrder(data) {
  return request({
    url: '/business/clientOrder',
    method: 'post',
    data: data
  })
}

// 修改客户端订单
export function updateClientOrder(data) {
  return request({
    url: '/business/clientOrder',
    method: 'put',
    data: data
  })
}

// 删除客户端订单
export function delClientOrder(id) {
  return request({
    url: '/business/clientOrder/' + id,
    method: 'delete'
  })
}
